﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace Brc_PaaS.Common.Model.Apollo
{
  public  class CreateConfigViewDto
    {
        /// <summary>
        /// 必填	
        /// 配置的key，长度不能超过128个字符。非properties格式，key固定为content
        /// </summary>
        [Required(ErrorMessage = "请输入配置得Key")]
        [MaxLength(60, ErrorMessage = "长度不能超过100")]
        public string Key { get; set; }
        /// <summary>
        /// 必填
        /// 配置的value，长度不能超过20000个字符，非properties格式，value为文件全部内容
        /// </summary>
        [Required(ErrorMessage = "请输入配置的value")]
        [MaxLength(10000, ErrorMessage = "长度不能超过10000")]
        public string Value { get; set; }
        /// <summary>
        /// 配置的备注, 长度不能超过1024个字符
        /// </summary>
        [MaxLength(512, ErrorMessage = "长度不能超过512")]
        public string Comment { get; set; }
        /// <summary>
        ///  (被使用系统ID)
        /// </summary>
        [Required(ErrorMessage ="请输入SystemId")]
        public string SystemId { get; set; }

        ///// <summary>
        ///// 必填
        ///// 此次发布的标题，长度不能超过64个字符
        ///// </summary>
        //[Required(ErrorMessage = "请输入标题")]
        //public string ReleaseTitle { get; set; }
        ///// <summary>
        ///// 	String 发布的备注，长度不能超过256个字符
        ///// </summary>
        //[MaxLength(128, ErrorMessage = "长度不能超过128个")]
        //public string ReleaseComment { get; set; }
    }
}
